<?php session_start() ?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
   <link href="../css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<?php
	require('../public/conn.php');
	$requester = $_GET['requester'];
	$receiver = $_GET['receiver'];
	$time_stamp=time();
	$query = "SELECT * FROM add_friends_applys WHERE 		              apply_requester='$requester' AND apply_receiver='$receiver'";
	$result=mysql_query($query);
	if(mysql_fetch_array($result)){//请求已存在
		
	}else{
		$query = "INSERT INTO add_friends_applys (apply_requester,
		apply_receiver,time_stamp) VALUES ('$requester','$receiver','$time_stamp')";
		$result=mysql_query($query);
	}
	mysql_close($con);
?>
<?php require('../public/footer.php');?>
</body>
</html>